put the value of (((en * sumsq) - (sum^2)) / ( en * ( en - 1 ))) into var
put sqrt(var) into card field f3
put the value of (sum / en) into card field f2
put the value of ((1.96 * (card field f3)) + card field f2) into card field f4
put the value of ((card field f2 - (1.96 * (card field f3))))into card field f5
end mouseUp
-- part 4 (field)
-- low flags: 00
-- high flags: 0002
-- rect: left=277 top=204 right=230 bottom=344
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 128
-- text size: 10
-- style flags: 0
-- line height: 13
-- part name: F2
-- part 5 (field)
-- low flags: 00
-- high flags: 0002
-- rect: left=278 top=238 right=264 bottom=345
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 128
-- text size: 10
-- style flags: 0
-- line height: 13
-- part name: F3
-- part 6 (button)
-- low flags: 00
-- high flags: 8003
-- rect: left=272 top=58 right=80 bottom=372
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: RESET
----- HyperTalk script -----
on mouseUp
global var
global sum
global sumsq
global en
put 0 into var
put 0 into sum
put 0 into sumsq
put 0 into en
delete line 1 of card field f1
delete line 1 of card field f2
delete line 1 of card field f3
delete line 1 of card field f4
delete line 1 of card field f5
get the location of card field f1
click at it
end mouseUp
-- part 7 (field)
-- low flags: 00
-- high flags: 0002
-- rect: left=278 top=269 right=294 bottom=345
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: f4
-- part 8 (field)
-- low flags: 00
-- high flags: 0002
-- rect: left=279 top=303 right=329 bottom=346
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: f5
-- part 9 (button)
-- low flags: 00
-- high flags: 8003
-- rect: left=154 top=316 right=338 bottom=254
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: SUB HEADINGS
----- HyperTalk script -----
on mouseUp
go to card id 63057
end mouseUp
-- part contents for background part 1
----- text -----
STANDARD DEVIATION #2
-- part contents for background part 2
----- text -----
This card takes a block of data and gives you the standard deviation of the curve it describes. In the section containing tables, several collections of data are listed along with instructions on how to copy it over to this card. Enter that data into the program at the right and hit the CALCULATE button when the final value is logged. You will be presented with the mean and standard deviation for that data spread. Note that the larger the standard deviation, the broader the data spread. The confidence limits extend through the data for two standard deviations on either side of the mean.In a normal distribution, the maximum and minimum values take in over 95% of the observed data in your spread. Scroll down to the point of data entry.